package com.ruoyi.web.pojo.vo.warning;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @desc  首页预警明细出参
 * @author yaojianbo 2024/4/11 14:02
 **/
@Data
@ApiModel("首页预警明细出参")
public class HomeWarningListVo {

    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty("预警时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime warningTime;

    @ApiModelProperty("预警值")
    private Integer warningValue;

    @ApiModelProperty("预警判断值")
    private Integer warningJudgeValue;

    @ApiModelProperty("单位")
    private String unitName;

    @ApiModelProperty("昆虫或设备名字")
    private String insectName;

    @ApiModelProperty("预警名称")
    private String deviceName;

    @ApiModelProperty("是否发送")
    private Integer isSend = 0;

    @ApiModelProperty("建议措施")
    private String description;

}
